package xyz.xiezc.xsync.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * (XFilePatch)实体类
 *
 * @author xiezc
 * @since 2020-10-10 18:01:46
 */
@Setter
@Getter
@TableName("x_file_patch")
public class FilePatchDO implements Serializable {
    private static final long serialVersionUID = 524238800810641737L;
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String hash;

    private Integer size;

    private Integer index;

    private Integer fileId;
    /**
     * 0: 未上传
     * 1：上传中
     * 2：上传结束
     */
    private Integer status;

    private LocalDateTime dateCreate;

    private LocalDateTime dateDelete;

    private LocalDateTime dateUpdate;
    /**
     * 块的存储路径
     */
    private String path;


}